//
// Created by 12628 on 24-12-12.
//

#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QPainter>
#include <QtMath>

class CarDashBoard : public QWidget {
    Q_OBJECT
    public:
        explicit CarDashBoard(QWidget *parent = nullptr);
        ~CarDashBoard() override;
        void setValues(qreal iValues);
        void paintEvent(QPaintEvent *event) override;
    private:
        qreal qValues;
        const static int radius;
        const static int maxv;
        const static int minv;
};


#endif //WIDGET_H
